package com.bigShen.mybatis.spring.dao;

import com.bigShen.mybatis.spring.entity.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : lei.shen
 * @date : 2018/11/21
 */
@Repository("userInfoMapper")
public interface UserInfoMapper {

    List<UserInfo> selectUserByName(String userName);

//    @Select("SELECT * FROM TTRD_AUTH_USER WHERE ACCOUNT = #{account}")
    List<UserInfo> selectUserByAccount(String account);

    List<UserInfo> selectUserLike(@Param("account") String account, @Param("userName") String userName,
                                  @Param("IId") Integer IId);

}
